package com.zhanglijie.theory.readwrite;

import com.sun.xml.internal.txw2.TXW;

/**
 * @author zhanglijie
 * @version 1.0
 * @since 1.1.0 2022/8/14 0014 16:31
 */
public class Test {
    public static void main(String[] args) {
        TextData textData = new TextData(6);
        new ReadThread("read1", textData).start();
        new ReadThread("read2", textData).start();
        new ReadThread("read4", textData).start();
        new ReadThread("read5", textData).start();
        new ReadThread("read6", textData).start();
        new ReadThread("read7", textData).start();
        new WriteThread("write1", textData,"ABCDEFGHI").start();
        new WriteThread("write2", textData,"abcdefghi").start();
    }
}
